package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author Mr.wyy
 * @since 2024-05-30
 */
@Data
@ApiModel(value = "Workers对象", description = "员工表")
public class Workers implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("员工ID")
    @TableId(value = "workers_id", type = IdType.AUTO)
    private Integer workersId;

    @ApiModelProperty("员工名称")
    private String workersName;

    @ApiModelProperty("员工性别 1 男 0女")
    private Integer workersSex;

    @ApiModelProperty("员工年龄")
    private Integer workersAge;

    @ApiModelProperty("员工简介")
    private String workersInfo;

    @ApiModelProperty("员工头像")
    private String workersImg;

    @ApiModelProperty("员工手机号")
    private String workersPhone;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("状态码 1 有效 0无效")
    private Boolean flag;
}
